<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<!-- 基本信息  -->
	<display-name>product operation center</display-name>
	<welcome-file-list>
		<welcome-file>login.jsp</welcome-file>
		<welcome-file>relogin.jsp</welcome-file>
	</welcome-file-list>

	<!--由Sprng载入的Log4j配置文件位置-->
	<context-param>
		<param-name>log4jConfigLocation</param-name>
		<param-value>/WEB-INF/classes/log4j.properties</param-value>
	</context-param>
			
	<!-- spring的应用上下文 -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
	</context-param>

	<!-- Leave the listener commented-out if using JBoss -->
	<listener>
		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
	</listener>
	
	<!-- spring的监听器，以便在启动时就自动加载spring的配置 org.springframework.web.context.ContextLoaderListener-->
	<listener>
		<listener-class>org.echoice.spring.ContextLoaderListener</listener-class>
	</listener>
	
	<!--listener>
       <listener-class>cn.ffcs.tmp.listener.DominoListener</listener-class> 
	</listener -->

	<servlet>
	   <servlet-name>domino</servlet-name>
	   <servlet-class>cn.ffcs.tmp.web.DominoServlet</servlet-class>
	  </servlet>
	  <servlet-mapping>
	   <servlet-name>domino</servlet-name>
	   <url-pattern>/dom.do</url-pattern>
	</servlet-mapping>
	
	<!-- Spring Encoding filter -->
	<filter id="Filter_1238727233109">
		<filter-name>Spring character encoding filter</filter-name>
		<filter-class>
			org.springframework.web.filter.CharacterEncodingFilter
		</filter-class>
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
		<init-param>
			<param-name>forceEncoding</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>
	
	<filter-mapping>
		<filter-name>Spring character encoding filter</filter-name>
		<url-pattern>*.action</url-pattern>
		<!--  
		<url-pattern>/login.jsp</url-pattern>
		<url-pattern>/relogin.jsp</url-pattern>
		<url-pattern>/xtreecheckbox/selectProductSort.jsp</url-pattern>
		<url-pattern>/business/ref/listProductRefSort.jsp</url-pattern>
		<url-pattern>/xtreecheckbox/selectProduct.jsp</url-pattern>
		-->
	</filter-mapping>    

    <filter-mapping>
		<filter-name>Spring character encoding filter</filter-name>
		<url-pattern>*.do</url-pattern>
	</filter-mapping>
     
	<filter-mapping>
		<filter-name>Spring character encoding filter</filter-name>
		<url-pattern>*.jsp</url-pattern>
	</filter-mapping>
			
    <!-- security filter -->
    <filter id="Filter_1238727234468">   
        <filter-name> Security Filter Chain Proxy </filter-name>   
	    <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
	    <init-param>
	      <param-name>targetClass</param-name>
			<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
	    </init-param>
    </filter> 
 
    <filter-mapping>   
        <filter-name> Security Filter Chain Proxy </filter-name>   
        <url-pattern>*.action</url-pattern>  
    </filter-mapping> 

	<filter-mapping>   
        <filter-name> Security Filter Chain Proxy </filter-name>   
        <url-pattern>*.do</url-pattern>  
    </filter-mapping>
    
	<!-- OpenSessionInViewFilter过滤器 -->
	<filter id="Filter_1238727234484">
		<filter-name>lazyLoadingFilter</filter-name>
		<filter-class>
			org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
		</filter-class>
	</filter>
	
	<filter-mapping>
		<filter-name>lazyLoadingFilter</filter-name>
		<url-pattern>/bpm/*</url-pattern>
	</filter-mapping>
	    
	<!-- struts2 过滤器 -->
	<filter id="Filter_1238727234469">
		<filter-name>struts2</filter-name>
		<filter-class>
			org.apache.struts2.dispatcher.FilterDispatcher
		</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>*.action</url-pattern>
		<!--  
		<url-pattern>/login.jsp</url-pattern>
		<url-pattern>/relogin.jsp</url-pattern>
		<url-pattern>/xtreecheckbox/selectProductSort.jsp</url-pattern>
		<url-pattern>/business/ref/listProductRefSort.jsp</url-pattern>
		<url-pattern>/xtreecheckbox/selectProduct.jsp</url-pattern>
		-->
	</filter-mapping>
	
	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>*.jsp</url-pattern>
	</filter-mapping>
			
	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/struts/*</url-pattern>
	</filter-mapping>
	
   
	<!--
		===============================
		默认的messages文件
		===============================
	-->
	<context-param>
		<param-name>
			javax.servlet.jsp.jstl.fmt.localizationContext
		</param-name>
		<param-value>ApplicationResources</param-value>
	</context-param>

	<servlet>
		<servlet-name>console</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	
    <servlet-mapping>
        <servlet-name>console</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
	
	<!-- session 时间设置  -->
	<session-config>
		<session-timeout>60</session-timeout>
	</session-config>

    <!--Error Page定义-->
    <error-page>
        <error-code>500</error-code>
        <location>/commons/error.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/commons/404.jsp</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/commons/403.jsp</location>
    </error-page>
    
     <!-- tag定义  -->
	<jsp-config>
		<taglib>
			<taglib-uri>/secu</taglib-uri>
			<taglib-location>/WEB-INF/tlds/security.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>/comp</taglib-uri>
			<taglib-location>/WEB-INF/tlds/compare-time.tld</taglib-location>
		</taglib>
	</jsp-config>
        
    <!-- MIME类型配置  -->
 	<mime-mapping>
		<extension>html</extension>
		<mime-type>text/html</mime-type>
	</mime-mapping>
 	<mime-mapping>
		<extension>txt</extension>
		<mime-type>text/plain</mime-type>
 	</mime-mapping>
 	<mime-mapping>
   		<extension>doc</extension>
   		<mime-type>application/msword</mime-type>
 	</mime-mapping>
 	<mime-mapping>
   		<extension>ppt</extension>
   		<mime-type>application/ppt</mime-type>
 	</mime-mapping>
 	<mime-mapping>
   		<extension>xls</extension>
   		<mime-type>application/vnd.ms-excel</mime-type>
 	</mime-mapping>
 	<mime-mapping>
   		<extension>vsd</extension>
   		<mime-type>application/vnd.visio</mime-type>
 	</mime-mapping>
 	
</web-app>
